/*
package 每日一题;

import java.util.Arrays;

*/
/**
 * @author chenhong
 * @version 1.0
 * @description TODO
 * @date 2023/4/24 10:59
 *//*

public class L1163 {
    public String lastSubstring(String s) {
        int[] map = new int[26];
        for (int i = 0; i < s.length(); i++) {
            map[s.charAt(i) - 'a']++;
        }
        int maxIndex = -1;
        int maxNum = 0;
        for (int i = 0; i < map.length; i++) {
            if(map[i] > maxNum){
                maxIndex = i;
                maxNum = map[i];
            }
        }
        char ch = 'a' + maxIndex;
    }
}
*/
